﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TransDetail.ascx.cs" Inherits="UI.UC.TransDetail" %>


 <asp:GridView ID="gvDetail" runat="server" 
        AutoGenerateColumns="False" onrowcommand="gvDetail_RowCommand" 
        onrowdatabound="gvDetail_RowDataBound" 
          Width="720px" CellPadding="1" GridLines="None" BackColor="White" 
    BorderColor="White"  CellSpacing="0" 
    CssClass="Detailtd">
        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
        <Columns>
         <asp:TemplateField HeaderText="序号">
         <ItemTemplate>         
         <asp:Label ID="lbSN" runat="server"></asp:Label>            
         </ItemTemplate>
             <ItemStyle Width="40px" HorizontalAlign="Center" />
         </asp:TemplateField>
          <asp:TemplateField HeaderText="产品编码">
        <ItemTemplate>
          <asp:TextBox ID="txtProductCode" runat="server" Text='<%#Eval("ProductCode") %>' 
                class="DetailCss" Width="70px" MaxLength="13"  onkeydown="if(event.keyCode==13)event.keyCode=9" ></asp:TextBox>
        </ItemTemplate>
             <ItemStyle Width="70px" />
      </asp:TemplateField>
      
       <asp:TemplateField HeaderText="名称">
        <ItemTemplate>
          <asp:TextBox ID="txtName" runat="server" Text='<%#Eval("Name") %>'        class="DetailCss" Width="110px" MaxLength="100"  onkeydown="if(event.keyCode==13)event.keyCode=9" ></asp:TextBox>
        </ItemTemplate>
             <ItemStyle Width="110px" />
      </asp:TemplateField>
      
         <asp:TemplateField HeaderText="规格">
        <ItemTemplate>
          <asp:TextBox ID="txtSpec" runat="server" Text='<%#Eval("Spec") %>' class="DetailCss" Width="90px" MaxLength="100"  onkeydown="if(event.keyCode==13)event.keyCode=9" ></asp:TextBox>
        </ItemTemplate>
             <ItemStyle Width="90px" />
      </asp:TemplateField> 
      <asp:TemplateField HeaderText="数量">
        <ItemTemplate>
          <asp:TextBox ID="txtNum" runat="server" Text='<%#Eval("Num") %>'  class="DetailCss" Width="50px" MaxLength="10"  onkeydown="if(event.keyCode==13)event.keyCode=9" ></asp:TextBox>
        </ItemTemplate>
          <ItemStyle Width="50px" />
      </asp:TemplateField>
      <asp:TemplateField HeaderText="单位">
        <ItemTemplate>
          <asp:TextBox ID="txtUnit" runat="server" Text='<%#Eval("Unit") %>' class="DetailCss" Width="40px" MaxLength="10"  onkeydown="if(event.keyCode==13)event.keyCode=9" >台</asp:TextBox>
        </ItemTemplate>
           <ItemStyle Width="40px" />
      </asp:TemplateField>
      <asp:TemplateField HeaderText="验收情况">
        <ItemTemplate>
        <asp:TextBox ID="txtProfile" runat="server" Text='<%#Eval("Profile") %>' class="DetailCss" Width="90px" MaxLength="120"  onkeydown="if(event.keyCode==13)event.keyCode=9" ></asp:TextBox>
        </ItemTemplate>
          <ItemStyle Width="90px" />
      </asp:TemplateField>
      <asp:TemplateField HeaderText="验收人">
        <ItemTemplate>
          <asp:TextBox ID="txtRevMan" runat="server" Text='<%#Eval("RevMan") %>' class="DetailCss" Width="60px" MaxLength="50"  onkeydown="if(event.keyCode==13)event.keyCode=9" ></asp:TextBox>
        </ItemTemplate>
        <ItemStyle Width="60px" />
      </asp:TemplateField>
        <asp:TemplateField HeaderText="备注">
        <ItemTemplate>
          <asp:TextBox ID="txtMemo" runat="server" Text='<%#Eval("Memo") %>' class="DetailCss" Width="90px" MaxLength="80"  onkeydown="if(event.keyCode==13)event.keyCode=9" ></asp:TextBox>
       
        </ItemTemplate>
         <ItemStyle Width="90px" />
      </asp:TemplateField>
     <asp:TemplateField HeaderText="操作">
        <ItemTemplate>
        <a href="#" onclick="show(this.parentNode.parentNode.rowIndex+1)"><img alt="查找" height="8" width="8" border="0" src="../Images/psearch.gif"   /></a> 

 <asp:LinkButton ID="lbtnAdd"   CommandName="cmdAdd" runat="server"><img alt="增行" border="0" height="8" width="8" src="../Images/add.gif"  /></asp:LinkButton> 
     <asp:LinkButton ID="lbtnDel"    CommandName="cmdDel" runat="server"><img alt="删行" border="0" height="8" width="8" src="../Images/del.gif" /></asp:LinkButton> 
          
        </ItemTemplate>
         <ItemStyle Width="80px" HorizontalAlign="Center" />
      </asp:TemplateField>
        </Columns>
      
        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
        <SelectedRowStyle BackColor="#9471DE" Font-Bold="False" ForeColor="White" />
        <HeaderStyle BackColor="#c0d9e6" Font-Bold="False" ForeColor="#00000F" />
      
    </asp:GridView>